import request from '@/utils/request';
import qs from 'qs';

export function query(params) {
  return request({
    url: process.env.VUE_APP_LOG_API + '/base/userLog/queryPage',
    method: 'get',
    params
  });
}

// 导出数据
export function download(params) {
  return request({
    url: process.env.VUE_APP_LOG_API + '/base/userLog/download' + '?' + qs.stringify(params, { indices: false }),
    method: 'get',
    responseType: 'blob'
  });
}
